package com.gitee.wsl.common.ui.graphics

import androidx.compose.runtime.Composable

data class DisplayMetrics(val density: Float, val xdpi: Float, val ydpi: Float) {
     fun withDensity(density: Float): DisplayMetrics {
        return if (this.density != density) {
            this.copy(density = density)
        } else {
            this
        }
    }
}

@Composable
expect fun getDisplayMetrics(): DisplayMetrics